package com.example.pro1.service.zhao.table;

import com.example.pro1.entity.zhao.OrderInfo;
import com.baomidou.mybatisplus.extension.service.IService;
import com.example.pro1.enums.OrderStatus;

import java.util.List;

public interface OrderInfoService extends IService<OrderInfo> {


    //产生订单
    OrderInfo createOderByProductId(Long productId,String x,Long userId,Integer fee,String num ,String beihzu,String addressId);
    //将订单付款二维码保存到订单数据库
    void saveCode_url(OrderInfo orderInfo);
    //查找所有顶单以产生时间降序排序
    List<OrderInfo> findAllByCreatTimeDesc();
    //更新订单
    void updateOrderInfo(String f, OrderStatus s);
    //查找订单状态
    String getOrderInfoStatus(String on);
    //对订单主动查询（wex）
    List<OrderInfo> getNoPayOrderByStatuNOTPAY(int minuts);
    List<OrderInfo> getNoPayOrderByStatuREFUND_PROCESSING(int i);

    //根据订单编号查找订单
    OrderInfo getOrderByOrderNo(String orderNo);
    //未支付
    List<OrderInfo> getOrdernopayStatus();
}
